package org.linlinjava.litemall.db.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @auth :ply
 * @date 2024/5/14 14:22
 * @Description TODO
 * 配方表
 */
@Data
@TableName("lumiere_cart_goods")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LumiereCartGoods {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * id
     */
    private Integer number;

    private BigDecimal price;

    private Integer goodsId;

    private Integer specificationId;


    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT) //插入时自动填充
    private LocalDateTime addTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE) // 插入 和 更新时 自动填充
    private LocalDateTime updateTime;

    /**
     * 是否删除(0否 1是)
     */
    @TableLogic
    private Boolean deleted;


}
